package com.java.androidmarket.service.impl;

import com.java.androidmarket.dao.OrderGoodsDao;
import com.java.androidmarket.entity.OrderGoods;
import com.java.androidmarket.service.OrderGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * description:
 * author:张腾
 * date:2021-05-18
 */

@Service
public class OrderGoodsServiceImpl implements OrderGoodsService {

    @Autowired
    private OrderGoodsDao orderGoodsDao;

    @Override
    public void insert(OrderGoods orderGoods) {
        orderGoodsDao.insert(orderGoods);
    }

    @Override
    public List<OrderGoods> getOrderGoods(int orderId) {

        return orderGoodsDao.getOrderGoods(orderId);
    }

    @Override
    public void deleteOrderGoods(int orderId) {
        orderGoodsDao.deleteOrderGoods(orderId);
    }

}
